package com.hogocloud.corelibrary

import android.content.Context


/**
 * libs的配置类,需要在application中初始化，不初始化一定会出问题!!!
 *
 * @author daydream
 */
object LibConfig {

    private var mAppContext: Context? = null

    /**
     * 是否是Debug模式
     */
    private var isDebug = true

    fun init(context: Context, isDebug: Boolean) {
        this.mAppContext = context
        this.isDebug = isDebug
    }

    fun isDebug(): Boolean {
        return isDebug
    }

    fun getAppContext(): Context {
        return mAppContext!!
    }
}
